home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CICA 1995 August
/
CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso
/
disc2
/
demo
/
pwrtcp11.exe
/
POWERUDP.HP_
/
POWERUDP.bin
Wrap
Text File
|
1994-12-02
|
2KB
|
52 lines
//***************************************************************************
//
// Module: PowerUdp.hpp
//
// Purpose:
// Declares CPowerUdp class
//
//***************************************************************************
//
// Written by Dart Communication Application Programming Group.
// Copyright (c) 1994 Dart Communications. All Rights Reserved.
//
//***************************************************************************
// PowerTCP.h should be included before this file
// typedefs used here...
// Classes used...
class CUdp;
//
// CPowerUdp
// Defines the functions required to provide a TCP stream to parent
//
class CPowerUdp
{
friend class CUdp;
private:
CUdp &Udp; // WINSOCK calls, etc here
protected:
// assessor functions from Udp follow...
virtual void ConnectEvent (LPCSTR LocalDotAddr, WORD LocalPort, LPCSTR LocalName,
WORD MaxByteCnt);
virtual void ExceptionEvent(PT_EXCEPTION ErrorCode, LPCSTR ErrorDesc, DWORD DataTag)=0;
virtual void RecvEvent (LPVOID Data, size_t ByteCnt, LPCSTR RemoteDotAddr,
WORD RemotePort);
virtual void SendEvent (DWORD DataTag);
virtual PT_TYPE GetType (void);
public:
BOOL Close (BOOL Abort);
BOOL Connect (LPCSTR OemLicense, PT_FLAGS Flags, LPCSTR LocalDotAddr, WORD LocalPort);
BOOL Recv (void);
BOOL Send (LPCSTR RemoteHost, WORD RemotePort,
LPVOID Data, size_t ByteCnt, DWORD DataTag);
PT_STATE State (void);
CPowerUdp (HINSTANCE);
~CPowerUdp (void);
int operator = (CPowerUdp &);
};